package main

import (
	"fmt"
)

func main() {

	//key 和 val的值转换后保存
	m1 := map[int]string{1: "a", 2: "b", 3: "c", 4: "d", 5: "e"}

	var m2 map[string]int

	m2 = make(map[string]int)

	for k1, v1 := range m1 {
		m2[v1] = k1

		//fmt.Println(k1)
	}
	fmt.Println("m2-map的值", m2)

}
